<?php

namespace app\model;

use think\Model;

class Config extends Model
{

    /**
     *
     * @param string $name
     * @return mixed
     */
    public static function getConfigValue($name)
    {
        return Config::where(['name' => $name])->value('value');
    }
}
